package site.linkway.core.service;

import site.linkway.core.entity.po.Good;
import site.linkway.core.mapper.GoodsMapper;

import java.util.List;

public class GoodsServiceImpl implements GoodsService {
    private GoodsMapper goodsMapper;

    public void setGoodsMapper(GoodsMapper goodsMapper) {
        this.goodsMapper = goodsMapper;
    }
    @Override
    public List<Good> selectAll() {
        return goodsMapper.selectAll();
    }

    @Override
    public Good selectById(Good good) {
        return goodsMapper.selectById(good);
    }

    @Override
    public long add(Good good) {
        return goodsMapper.add(good);
    }

    @Override
    public long updateById(Good good) {
        return goodsMapper.updateById(good);
    }

    @Override
    public long deleteById(Good good) {
        return goodsMapper.deleteById(good);
    }
}
